@model ExpertSMS.Models.KitchenProductStock

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.CurrentQuantity)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.CurrentQuantity)
    @Html.ValidationMessageFor(model => model.CurrentQuantity)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.OriginalQuantity)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.OriginalQuantity)
    @Html.ValidationMessageFor(model => model.OriginalQuantity)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Cost)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Cost)
    @Html.ValidationMessageFor(model => model.Cost)
</div>

<div class="editor-label">
    KitchenImportEntryItem
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.KitchenImportEntryItemID, ((IEnumerable<ExpertSMS.Models.KitchenImportEntryItem>)ViewBag.PossibleKitchenImportEntryItems).Select(option => new SelectListItem {
        Text = Html.DisplayTextFor(_ => option).ToString(), 
        Value = option.KitchenImportEntryItemID.ToString(),
        Selected = (Model != null) && (option.KitchenImportEntryItemID == Model.KitchenImportEntryItemID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.KitchenImportEntryItemID)
</div>
